home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VMPAGESZ.S < prev    next >
Text File  |  1993-03-25  |  1KB  |  41 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5. ;*-----------------------------------------------------------------------
  6. ;*
  7. ;*-----------------------------------------------------------------------
  8.  
  9.           globl     _vm_pagesize
  10. _vm_pagesize:
  11.  
  12. ;    .cargs    #8,handle.w,width.w,height.w
  13.  
  14. handle      =         8
  15. width      =         10
  16. height      =         12
  17.  
  18.           link        a6,#-2
  19.  
  20. ;          VContrl    #5,99,,#3
  21.           move.w    handle(a6),-(sp)    ; contrl[6]
  22.           move.w    #99,-(sp)            ; contrl[5]
  23.           subq.l    #2,sp                ; contrl[4]
  24.           move.w    #3,-(sp)            ; contrl[3]
  25.           subq.l    #2,sp                ; contrl[2]
  26.           clr.w     -(sp)                ; contrl[1]
  27.           move.w    #5,-(sp)            ; contrl[0]
  28.  
  29.           clr.w     handle(a6)            ; first intin word must be zero; it
  30.                                         ; replaces handle in stacked parms.
  31.  
  32.           subq.l    #4,sp                ;* -> ptsout
  33.           pea        -2(a6)                ;* -> intout
  34.           subq.l    #4,sp                ;* -> ptsin
  35.           pea        handle(a6)            ;* -> intin
  36.           pea        16(sp)                ;* -> contrl
  37.  
  38.           jmp        vdicall
  39.  
  40.           end
  41.